﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DevScope.SharePoint.Utils.BulkDelete
{
    internal static class Constants
    {
        public const string SPWSLists = "_vti_bin/lists.asmx";

        public static class CAML
        {
            public static readonly string ViewFields = string.Format("<FieldRef Name='{0}' /><FieldRef Name ='{1}' />", BatchColumns.Id, BatchColumns.EncodedAbsUrl);

            public static class BatchColumns
            {
                public const string Id = "ID";
                public const string EncodedAbsUrl = "EncodedAbsUrl";
                public const string FileRef = "FileRef";
            }
            
            public static class ResultColumns
            {
                public const string Id = "ows_ID";
                public const string EncodedAbsUrl = "ows_EncodedAbsUrl";
            }
        }

        public static class DefaultValues
        {
            public const int Retries = 3;
            public const int ProxyTimeout = -1;
            public const int BatchSize = 100;
             
        }

        public static class WebServices
        {
            public const string SPWSLists = "/_vti_bin/lists.asmx";
        }

        public static class Tokens
        {
            public const char OrderByColumnsSeparator = ';';
        }

        public static class Arguments
        {
            public const string Web = "-web";
            public const string List = "-list";
            public const string Filter = "-filter";
            public const string BatchSize = "-batchsize";
            public const string RetryCount = "-retries";
            public const string Help = "-help";
            public const string View = "-view";            
        }

    }
}
